-- GENERATED SPELL FOR [Spirit Raven] --


function spell0_21324(pUnit, Event) --@Festering Wound,n/a--
pUnit:FullCastSpellOnTarget(38254,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21324', 604, 1)
end

function spell1_21324(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(38021,pUnit)
pUnit:RegisterEvent('Sorts_21324', 7257, 1)
end

function Sorts_21324(pUnit, Event)
local choix_sorts_21324 = math.random(0, 1)
if choix_sorts_21324 == 0 then
pUnit:RegisterEvent('spell0_21324', 1, 1)
end
if choix_sorts_21324 == 1 then
pUnit:RegisterEvent('spell1_21324', 1, 1)
end
end

function mob21324_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21324', math.random(1500, 3000), 1)
end

function mob21324_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21324_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21324_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21324, 1, 'mob21324_Action')
RegisterUnitEvent(21324, 2, 'mob21324_Leave')
RegisterUnitEvent(21324, 3, 'mob21324_Kill')
RegisterUnitEvent(21324, 4, 'mob21324_Die')
